package test.service.impl;

import cn.wen233.srpc.core.service.SunglowService;
import org.springframework.stereotype.Service;
import test.model.Student;
import test.service.StudentService;
import test.service.repo.MockRepo;

import javax.annotation.Resource;

/**
 * @author wenei
 * @date 2021-12-26 13:31
 */
@Service
@SunglowService
public class StudentServiceImpl implements StudentService {

    @Resource
    private MockRepo mockRepo;

    @Override
    public Student findByName(String name) {
        Student student = new Student();
        student.setName(name);
        student.setAge(199);
        mockRepo.print();
        return student;
    }
}
